package com.wxiao.exam;

import com.wxiao.exam.pojo.vo.*;

import java.lang.reflect.InvocationTargetException;

/** 
 * <br/>
 * Created by wangxiao on 2019/07/07
 */
public interface ExamService {

	Result addExam(ExamVO examVO) throws Exception;

	Result updateExam(ExamVO examVO) throws Exception;
	
	Result findDetailExam(ExamVO examVO) throws Exception;
	
	PageBean<ExamVO> listExam(ExamVO examVO) throws Exception;

    Result listExamPage(ExamVO examVO) throws Exception;
	
	Result countExam(ExamVO examVO) throws Exception;
	
	Result deleteExam(ExamVO examVO) throws Exception;

    Result updateExam(ExamQuestionVO examQuestionVO, int i);

    PageBean<ExamVO> findExamByClassId(ClassVO classVO) throws InvocationTargetException, IllegalAccessException;

	Boolean hasJoined(Integer eid, String id) throws Exception;

	BeginExamVO joined(Integer eid);

    Result marking(ExamAnswerVO examAnswerVO, String id);
}